home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / ezfile20.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-04-20  |  4KB  |  125 lines

  1. echo off
  2. cls
  3. if a%1==a goto nopath
  4. echo off
  5. if exist APPSMENU.TXT goto c1
  6. echo File APPSMENU.TXT not found >>ezerror.lst
  7. :c1
  8. if exist COMLIST.TXT goto c2
  9. echo File COMLIST.TXT not found >>ezerror.lst
  10. :c2
  11. if exist EASYFILE.EXE goto c3
  12. echo File EASYFILE.EXE not found >>ezerror.lst
  13. :c3
  14. if exist EASYFILE.DOC goto c4
  15. echo File EASYFILE.DOC not found >>ezerror.lst
  16. :c4
  17. if exist EZINST.EXE goto c6
  18. echo File EZINST.EXE not found >>ezerror.lst
  19. :c6
  20. if exist EZMENU.EXE goto c7
  21. echo File EZMENU.EXE not found >>ezerror.lst
  22. :c7
  23. if exist GAMEMENU.TXT goto c8
  24. echo File GAMEMENU.TXT not found >>ezerror.lst
  25. :c8
  26. if exist INSTALL.BAT goto c9
  27. echo File INSTALL.BAT not found >>ezerror.lst
  28. :c9
  29. if exist README goto c10
  30. echo File README not found >>ezerror.lst
  31. :c10
  32. if exist REGISTER.TXT goto c11
  33. echo File REGISTER.TXT not found >>ezerror.lst
  34. :c11
  35. if exist ZIPCOM.TXT goto c12
  36. echo File ZIPCOM.TXT not found >>ezerror.lst
  37. :c12
  38. if not exist ezerror.lst goto filesfound
  39. echo  >>ezerror.lst
  40. echo                       ╔══════════════════════════════════╗ >>ezerror.lst
  41. echo                       ║  EASYFILE documentation and      ║ >>ezerror.lst
  42. echo                       ║  program files must be in the    ║ >>ezerror.lst
  43. echo                       ║  current directory for INSTALL   ║ >>ezerror.lst 
  44. echo                       ║  to work.                        ║ >>ezerror.lst 
  45. echo                       ╚══════════════════════════════════╝ >>ezerror.lst 
  46. echo  >>ezerror.lst
  47. :filesfound
  48. if not exist %1 goto goodpath
  49. echo   >>ezerror.lst 
  50. echo                       ╔══════════════════════════════════╗ >>ezerror.lst 
  51. echo                       ║                                  ║ >>ezerror.lst 
  52. echo                       ║  Bad subdirectory specification. ║ >>ezerror.lst 
  53. echo                       ║                                  ║ >>ezerror.lst 
  54. echo                       ║         Please try again.        ║ >>ezerror.lst 
  55. echo                       ║                                  ║ >>ezerror.lst 
  56. echo                       ╚══════════════════════════════════╝ >>ezerror.lst 
  57. echo  >>ezerror.lst
  58. :goodpath
  59. if not exist ezerror.lst goto install
  60. type ezerror.lst
  61. del ezerror.lst
  62. goto end
  63. :install
  64. md %1
  65. cls
  66. echo  
  67. echo  
  68. echo  
  69. echo  
  70. echo  
  71. echo  
  72. echo  
  73. echo                       ╔═══════════════════════════════╗
  74. echo                       ║                               ║
  75. echo                       ║     Installing EASYFILE...    ║
  76. echo                       ║                               ║
  77. echo                       ║          Please Wait          ║
  78. echo                       ║                               ║
  79. echo                       ║         Copying files         ║
  80. echo                       ║                               ║
  81. echo                       ╚═══════════════════════════════╝
  82. echo  
  83. copy APPSMENU.TXT %1
  84. copy COMLIST.TXT %1
  85. copy EASYFILE.EXE %1
  86. copy EASYFILE.DOC %1
  87. copy EZINST.EXE %1
  88. copy EZMENU.EXE %1
  89. copy EZMONO.CFG %1
  90. copy GAMEMENU.TXT %1
  91. copy INSTALL.BAT %1
  92. copy README %1
  93. copy REGISTER.TXT %1
  94. copy ZIPCOM.TXT %1
  95. echo  
  96. echo Files copied to directory %1
  97. echo This directory should be placed in the DOS PATH.
  98. echo  
  99. echo Remember, the included program EZINST.EXE may be used to configure the
  100. echo operation of EASYFILE.
  101. echo  
  102. goto end
  103. :nopath
  104. cls
  105. echo  
  106. echo  
  107. echo  
  108. echo  
  109. echo  
  110. echo                       ╔══════════════════════════════════╗
  111. echo                       ║                                  ║
  112. echo                       ║  Please specify a subdirectory,  ║
  113. echo                       ║                                  ║
  114. echo                       ║  on the INSTALL command line,    ║
  115. echo                       ║                                  ║
  116. echo                       ║  in which to place the program   ║
  117. echo                       ║                                  ║
  118. echo                       ║  files.                          ║
  119. echo                       ║                                  ║
  120. echo                       ║                                  ║
  121. echo                       ║  Example: INSTALL C:\EZFILES     ║
  122. echo                       ║                                  ║
  123. echo                       ╚══════════════════════════════════╝
  124. :end
  125.